<template>
  <page-main class="page-report-detail">
    <div class="m-x-15 p-y-15">
      <div class="patient">
        <van-row>
          <van-col span="8">姓名：{{cust.custName}}</van-col>
          <van-col span="8">性别：{{cust.sex == '1' ? '男' : '女'}}</van-col>
          <van-col span="8">年龄：{{cust.age}}岁</van-col>
          <van-col span="24"><span class="c-grey">报告日期：{{info.createTime}}</span></van-col>
        </van-row>
      </div>
      
      <div class="content">
        <div class="hd">
          检查项目：{{info.name}}
        </div>
        <div class="bd">
          <p class="p-b-15">报告图片：</p>
          <van-image width="100%" :src="info.resultUrl" />
        </div>
      </div>
    </div>
  </page-main>
</template>

<script>
export default {
  data(){
    return{
      cust:{},
      info:{}
    }
  },
  created(){
    this.getDetail();
  },
  methods:{
    getDetail(){
      this.$http('get', '/admin/custApi/getInspectionById',{InspectionId: this.$route.query.inspectionId}, async (data,msg) => {
        this.info = data;
        this.info.resultUrl = this.$util.baseUrl + this.info.resultUrl;
        this.cust = await this.$http('get', '/admin/custApi/'+data.cardId, {});
      })
    }
  }
}
</script>

<style>

</style>